package com.project.internship.controller.base;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import com.project.internship.entity.Audit;
import com.project.internship.entity.resp.RespPageBean;
import com.project.internship.service.BaseEvaluateService;
import com.project.internship.vo.BaseEvaluateVO;
import com.project.internship.vo.BaseTotalEvaluateVO;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 学院端的基地评估
 */
@RestController
@RequestMapping("/base/assess")
@Api("实习基地评价")
public class BaseAssessController {

    @Autowired
    BaseEvaluateService beService;

    /**
     * 获取今年实习基地的评价信息
     * @return
     */
    @GetMapping("/")
    @ApiOperationSupport()
    public List<BaseTotalEvaluateVO> getThisYearBaseEva(String keyword){

        return beService.getThisYearBaseEva(keyword);
    }

    @GetMapping("/avg")
    public List<BaseTotalEvaluateVO> getBaseAvgEva(String keyword){

        return beService.getBaseAvgEva(keyword);
    }

}
